'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const {
    router,
    controller
  } = app;
  const auth = app.middleware.auth()
  router.post('/register', controller.sign.register);
  router.post('/login', controller.sign.login);
  router.get('/getList',auth, controller.sign.getList);



  router.post('/user/getAvat', auth, controller.user.getAvat);
  router.post('/upload', controller.upload.upload);
};